/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
//public class Main {
//    public static void main(String[] args) {
//
//    }
//}
import java.util.*;
public class Main {
    public int hashCode() {
        return 1;
    }
    public boolean equals(Object b) {
        return true;
    }
    public static void main(String args[]) {
        Set set = new HashSet();
        set.add(new Main());
        set.add(new String("ABC"));
        set.add(new Main());
        System.out.println(set.size());
    }
}